//
//  LYLWebViewController.m
//  TheLCNews
//
//  Created by dllo on 15/12/3.
//  Copyright © 2015年 LC. All rights reserved.
//

#import "LYLWebViewController.h"

@interface LYLWebViewController ()
@property (nonatomic, strong) UIWebView *webView;

@end

@implementation LYLWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
   [self createWebView];
}

- (void)createWebView {
    self.webView = [[UIWebView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:self.webView];
    NSLog(@"%@", self.url);
    NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]];
    [self.webView loadRequest:request];
    self.webView.scrollView.bounces = NO;
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
